package models;

import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

import play.db.ebean.Model;

@Entity
@Table(name = "gulink")
public class GULink extends Model
{
    private static final long serialVersionUID = 1L;

    @EmbeddedId
    private GULinkPK linkPK;

    protected static String ID_USER = "id_user";
    protected static String ID_GROUP = "id_group";

    public static Model.Finder<Long, GULink> find = new Model.Finder<Long, GULink>(
	    Long.class, GULink.class);

    public String getId_user()
    {
	return linkPK.id_user;
    }

    public void setId_user(String id_user)
    {
	this.linkPK.id_user = id_user;
    }

    public String getId_group()
    {
	return linkPK.id_group;
    }

    public void setId_group(String id_group)
    {
	this.linkPK.id_group = id_group;
    }
}
